<?php
class Logout extends MY_Controller {

	function __construct()
	{		
		parent::__construct();	
	}
	
	function index()
	{
		$this->session->unset_userdata('sess_user_id');
		$this->session->sess_destroy();
		session_start();
		unset($_SESSION['sess_user_id']);
		redirect(base_url().'/');
	}
}